home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
EXPRO
/
_files
/
_exprodir
/
exprodoc
< prev
next >
Wrap
Text File
|
1991-07-02
|
989b
|
34 lines
For all Archimedes C programmers outthere.
The Norcroft RISCOS ARM C compiler does support
profiling if you specify the -p[x] option on the
commandline. You get a nice list of count values
for every function or block. For optimising purposes
you can pay attention to the function which is called
most.
But far more interesting is if you know how much time
is spent in one particular function. A future release
of the C compiler could have this feature as mentioned
in the manual. But I had no time to wait and wrote my
own execution time profiler which I include at the end
of this message (uuencoded, sparked).
It is simple to use and works also in the WIMP
environment. When your program uses floating point
arithmetic the total time spent in the fpemulator
will also be shown (my raytracer spends 92% of its
time in the fpemulator code, I need an ARM 4 !!!!).
Ferdinand Oeinck
Javalaan 25
9715 GP Groningen
The Netherlands
tel ++31(0)50732202
email: hp4nl!neabbs!ferdo